<me:UIERK x:Class="WPFExcelReport.KB267"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
           xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
           xmlns:me="clr-namespace:WPFExcelReport" 
           FontFamily="SimSun"
           xmlns:Localization="clr-namespace:Localization;assembly=Localization"
           x:Name="TV"
           Loaded="Window_Loaded"
     >
    <me:UIERK.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:ImgPackage x:Key="img"/>
        <ucd:PNumConverter x:Key="pnum"/>
    </me:UIERK.Resources>
    <WrapPanel>      
        <Button  Click="NewCommand" Width="105" Height="60" FontSize="18" BorderThickness="3">
            <Button.Content>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                    </Grid.RowDefinitions>
                    <StackPanel  Grid.Row="1">
                        <!--<TextBlock Text="{Binding KEY,Source={StaticResource vwMaster}}"/>-->
                        <Label Content="{Binding SDES,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}"
                           HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0" />
                       
                    </StackPanel>
                    <WrapPanel Grid.Row="0">
                        <TextBlock Margin="2" Text="{Binding V3,ElementName=TV,Converter={StaticResource pnum}}" FontSize="10" />
                        <TextBlock  Margin="2" Text="{Binding V4,ElementName=TV,Converter={StaticResource pnum}}" FontSize="10" />
                        <TextBlock  Margin="2" Text="{Binding V5,ElementName=TV,Converter={StaticResource pnum}}" FontSize="10" />
                    </WrapPanel>
                </Grid>
                
            </Button.Content> 
        </Button>
    </WrapPanel>
</me:UIERK>
